<div id="time"></div>
<button id="update-time">Update Time</button>
<script>
function updateTime(time){
	$("#time").html(time);
}
$(document).ready(function(){
	var pusher = new Pusher('64c050279d17bbe5b54b');
  var channel = pusher.subscribe('update-time');
  channel.bind('event-update', function(data) {
  	updateTime(data.time);
  });

	$("#update-time").click(function(e){
		$.ajax({
			url: $base_url + 'admincp/server',
			success: function(rs){
				updateTime(rs);
			}
		});
	});
});


</script>